<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/ec.jsp" %>
<%@include file="/common/meta.jsp"%>
</head>
<body>
<div class="x-panel">
<div class="x-panel-header">资源管理</div>
<div class="x-toolbar">
  <div style="margin: 5px 10px; text-align: right;">
  	<img src="${ctx}/images/exticons/preview-hide.gif">
  	<a href="${ctx}/security/resource/index.do"> 资源首页</a>
  </div>
</div>
<div class="x-panel-body">
<s:form action="resource/save" validate="true" theme="simple">
<%@ include file="/common/messages.jsp"%>
<fieldset style="margin: 10px;">
<legend>编辑资源</legend>
<s:hidden name="model.id" />
	<table>
	  <tr>
		<td align="right" width="120">资源类型：</td>
		<td style="color: green">
		  URL访问资源
		  <s:hidden name="model.resType" value="%{@com.systop.common.modules.security.user.UserConstants@RESOURCE_TYPE_URL}" />
		</td>
	  </tr>
	  <tr>
		<td align="right">资源名称：</td>
		<td>
		  <s:textfield id="name" name="model.name" size="60" maxlength="60"/>
		  <font color="red">&nbsp;*</font>
		</td>
	  </tr>
	  <tr>
		<td align="right">资源地址：</td>
		<td>
			<s:textfield id="resString" name="model.resString" size="60" maxlength="255"/>
			<font color="red">&nbsp;*</font>
		</td>
		</tr>
		<tr>
			<td align="right">资源描述：</td>
			<td>
				<s:textfield id="descn" name="model.descn" size="60" maxlength="255"/>
				<font color="red">&nbsp;*</font>
			</td>
		</tr>
	</table>
</fieldset>
<div style="text-align: center;">
	<input type="submit" value="保存" class="button">
	<input type="reset" value="重置" class="button">
</div>
</s:form>
</div>
</div>
</body>
</html>